/**
 * Created by miaoyu on 2017/7/19.
 *//*
function lastPage() {
    var nowPage = <%=thisPageNum%>;
    var id = <%=postID%>
    if(nowPage <2){

    }else{
        nowPage = nowPage-1;
        window.location.href = "innerPost.jsp?page=" + nowPage+"&postID="+ id;
    }
}

function nextPage() {
    var nowPage = <%=thisPageNum%>;
    var id = <%=postID%>;
    var max = <%=allPageNum%>;
    if(nowPage+1>max){

    }else{
        nowPage = nowPage+1;
        window.location.href = "innerPost.jsp?page=" + nowPage+"&postID="+ id;
    }
}

function toPage(num) {
    var max = <%=allPageNum%>;
    if(num>max){}
    else {
    <%request.setAttribute("postID",postID);%>
        var id = <%=postID%>;
        window.location.href = "innerPost.jsp?page=" + num+"&postID="+id;
    }
}

function jumpTo1() {
    var id = <%=postID%>;
    var input = document.getElementById("pageNum1");
    var str = input.value;
    var num = parseInt(str);
    var max = <%=allPageNum%>;
    if(num>max||isNaN(num)){

    }else if(num<1){

    }else{
        window.location.href = "innerPost.jsp?page=" + num+"&postID="+id;
    }

}


function jumpTo2() {
    var id = <%=postID%>;
    var input = document.getElementById("pageNum2");
    var str = input.value;
    var num = parseInt(str);
    var max = <%=allPageNum%>;
    if(num>max||isNaN(num)){

    }else if(num<1){

    }else{
        window.location.href = "innerPost.jsp?page=" + num+"&postID="+id;
    }

}

function showReplyForm(btn) {
    var btnID = btn.id;
    var num = btnID.substring(8);
    var formID = "replyForm" + num;
    var form = document.getElementById(formID);
    // var forms = document.getElementsByClassName("replyForm");

    //forms.style.display = "none";
    form.style.display="block";

}

function reply(btn) {

    var floorID = btn.id.substring(11);
    var inputID = "replyInput" +floorID;
    var input = document.getElementById(inputID);
    var content = input.value;
    window.location.href = "ReplyServlet?content=" + content+"&floorID="+floorID +"&postID="+<%=postID%>;
}
*/